package java_作业4;

class Cat extends Animal implements Afraid {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    @Override
    public void escape() {
        System.out.println("猫害怕了，窜上了树");
    }

    @Override
    public void makeSounds() {
        System.out.println("猫害怕时发出嘶嘶声");
    }
}
